package com.hdax.dmw.order.feign;

import com.hdax.dmw.entity.user.LinkUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dmw-services-user")
public interface LinkUserFeign {

    @PostMapping(path = "/user/linkuser/list")
    public List<LinkUser> linkUserList(@RequestParam("userId")Long userId);

    @PostMapping(path = "/user/linkuser/detail")
    LinkUser detail(
            @RequestParam("linkId")Long linkId,
            @RequestParam("userId")Long userId
    );
}
